Ext.define('BEST.view.paramprotocol.Edit',{
	extend:'Ext.window.Window',
	alias:'widget.paramprotocoledit',
	title: 'Edit',
	border: false,
    layout: "form",
    width: 450,
   // height: 600,
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                layout:'column',
                items: [{
                    xtype: 'hidden',
                    name : 'tpiType',
                    allowBlank:false,
                    value:'2'
                },
                    {
                        xtype: 'textfield',
                        name : 'tpiName',
                        fieldLabel: '协议代扣参数名',
                        allowBlank:false,
                        blankText:'不能为空'
                    },
                    {
                        xtype: 'textfield',
                        name : 'tpiValue',
                        fieldLabel: '协议代扣参数值',
                        allowBlank:false,
                        blankText:'不能为空'
                    },
                    {
                        xtype: 'textarea',
                        name : 'tpiDesc',
                        fieldLabel: '协议代扣参数描述',
                        anchor    : '100%'
                    }
                    ]
                
            }
        ];

        this.buttons = [
            {
                text: '保存',
                itemId:'save'
            },
            {
                text: '取消',
                itemId:'cancel'
            }
        ];

        this.callParent(arguments);
    }
});